package com.jinkaimen.goodcash.utils;

import android.Manifest;
import android.content.pm.PackageManager;

import com.ht.baselibs.application.HTApplication;

public class PermissionUtils {


    public static boolean hasCameraPermission(){
        PackageManager pm = HTApplication.getContext().getPackageManager();
        return (PackageManager.PERMISSION_GRANTED == pm.checkPermission(Manifest.permission.CAMERA, HTApplication.getContext().getPackageName()));
    }

    public static boolean hasWriteSDCardPermission(){
        PackageManager pm = HTApplication.getContext().getPackageManager();
        return (PackageManager.PERMISSION_GRANTED == pm.checkPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, HTApplication.getContext().getPackageName()));
    }
}
